home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Info 1994 March
/
Internet Info CD-ROM (Walnut Creek) (March 1994).iso
/
networking
/
cisco
/
account.shar
/
agg.awk
next >
Wrap
Text File
|
1992-08-07
|
257b
|
18 lines
# 1.1 90/02/07 dfk@cwi.nl
/[0-9]*\.[0-9]*\./ {
bytes[$1 " " $2] += $4;
packets[$1 " " $2] += $3;
}
END {
for (i in bytes)
{
split(i, fromto);
printf "%-16.16s %-16.16s ", fromto[1], fromto[2];
printf "%10d %15d\n", packets[i], bytes[i];
}
}